/**
 * 
 */
package com.jeecms.wicool.manager.tradeArea.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.dao.tradearea.OfficeBuildingDao;
import com.jeecms.wicool.entity.tradearea.OfficeBuilding;
import com.jeecms.wicool.manager.tradeArea.OfficeBuildingMng;

/**
 * @author Administrator
 *
 */
public class OfficeBuildingMngImpl implements OfficeBuildingMng {

	@Autowired
	private OfficeBuildingDao dao;
	
	@Override
	public Pagination getPage(String name, String address, Integer userId,
			Integer tradeId, int pageNo, int pageSize) {
		return dao.getPage(name, address, userId, tradeId, pageNo, pageSize);
	}

	@Override
	public OfficeBuilding findById(Integer id) {
		return dao.findById(id);
	}

	@Override
	public OfficeBuilding save(OfficeBuilding obj) {
		
		return dao.save(obj);
	}

	@Override
	public OfficeBuilding deleteById(Integer id) {
		return dao.deleteById(id);
	}

	@Override
	public List<OfficeBuilding> deleteByIds(Integer[] ids) {
		return dao.deleteByIds(ids);
	}

	@Override
	public OfficeBuilding update(OfficeBuilding obj) {
		return dao.update(obj);
	}

	@Override
	public List<OfficeBuilding> getAll() {
		return dao.getAll();
	}

}
